﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.IO;
using JiveMessenger.ViewModels;
using JiveMessenger.CustomEventArgs;
using System.Windows.Media;
using JiveMessenger.Utilities;
using System.ComponentModel;
using GalaSoft.MvvmLight.Messaging;

namespace JiveMessenger.Views
{
    /// <summary>
    /// Interaction logic for OpenLogs.xaml
    /// </summary>
    public partial class LogsWindow : Window
    {

        public LogsWindow(string folder)
        {
            InitializeComponent();
            this.DataContext = new ViewModelLogsWindow(folder);


        }

        protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
        {
            ((ViewModelLogsWindow)this.DataContext).Cleanup();
            base.OnClosing(e);
        }
    }
}
